﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class Sssion : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //Application ("app HitCount") = Application ("app hit count") +1;
        //Session("sessionHitCount") = Session("Hit Count") + 1;
        //Label1.Text = Application(" sessionHitCount");
        //Label2.Text = Session("sessionHitCount");

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        Session["Name"] = TxtName.Text;
    }
    protected void BtnSubmit_Click(object sender, EventArgs e)
    {
        string Url;
        Url ="DisplayValue.aspx?ViewId=3";
        Session["FName"] = TxtFName.Text;
        Session["LName"] = TxtLName.Text;
        Session["Email"] = TxtEmail.Text;
        Session["Dob"] = TxtDob.Text;
            Response.Redirect(Url);
        
               

    }
}
